﻿<controls:ChildWindow x:Class="VAdvantage.Framework.Chat"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
                      Title="Chat Page"
                      xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" HasCloseButton="True" 
                      mc:Ignorable="d" 
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                      Height="442" Width="400" 
                      xmlns:my="clr-namespace:VAdvantage.Controls"
                      Loaded="Chat_Load">
    <Grid>
    <Grid x:Name="LayoutRootChat" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="btnCancel" Width="35" Height="35" HorizontalAlignment="Right" Margin="0,5,37,0" Grid.Row="1" Click="btnCancel_Click" >
            <Image Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill"></Image>
        </Button>
        <Button x:Name="btnOK" Width="35" Height="35" HorizontalAlignment="Right" Margin="0,5,0,0" Grid.Row="1" Click="btnOk_Click" >
            <Image Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill"></Image>
        </Button>
        <RichTextBox x:Name="rtxtEnter" Margin="0,254,0,0" IsReadOnly="False" />
        <!--<my:VHtmlTextBlock x:Name="txtHtml" Margin="0,0,0,120" Background="Transparent" />-->
            <ScrollViewer HorizontalAlignment="Stretch" Margin="0,0,0,120" Background="White" HorizontalContentAlignment="Center" HorizontalScrollBarVisibility="Disabled" >
                <ListBox Name="lstChatRecords"  Background="Transparent" HorizontalAlignment="Center" BorderBrush="{x:Null}" BorderThickness="0" IsHitTestVisible="False" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemTemplate="{StaticResource ChatListDataTemplate}" HorizontalContentAlignment="Center"  > </ListBox>
            </ScrollViewer>
            <!--<ScrollViewer HorizontalContentAlignment="Center" Margin="0,0,0,2" HorizontalAlignment="Center" BorderBrush="#FFCCCCCC" BorderThickness="0,0,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Background="Transparent">
                <ListBox  ItemTemplate="{StaticResource ChatListDataTemplate}" Name="lstChatRecords" BorderBrush="Transparent" BorderThickness="0" Background="Transparent"  Height="Auto" SelectionChanged="ListBox_SelectionChanged" HorizontalAlignment="Center" HorizontalContentAlignment="Center" IsHitTestVisible="False">

                </ListBox>
            </ScrollViewer>-->
        </Grid>
        <Grid x:Name="busyWindow" Opacity=".2" Background="LightGray" Visibility="Collapsed" MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
            <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading..." VerticalAlignment="Center"></TextBlock>
        </Grid>
    </Grid>
</controls:ChildWindow>
